<template>
    <div>
        <el-form class="viewForm" label-width="80px">
                    <el-col :span="12">
                        <el-form-item label="订单状态">
                            <div v-html="viewModel.state"></div>
                        </el-form-item>
                    </el-col>
                    <el-col :span="12">
                        <el-form-item label="订单数量">
                            <div v-html="viewModel.num"></div>
                        </el-form-item>
                    </el-col>
                    <el-col :span="12">
                        <el-form-item label="下单人">
                            <div v-html="viewModel.customerId"></div>
                        </el-form-item>
                    </el-col>
                    <el-col :span="12">
                        <el-form-item label="订单金额">
                            <div v-html="viewModel.amount"></div>
                        </el-form-item>
                    </el-col>
        </el-form>
    </div>
</template>

<script setup>
    import {useShow} from "@/utils/useShow";
    const { goBack,viewModel} = useShow("/order/view")
</script>

<style scoped>

</style>